<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <div class="fly-tab fly-tab-index">
                <span>
                    <a href="{:U('index/jie/jie')}">
                        全部
                    </a>
                    <a href="{:U('index/jie/unsolved')}">
                        未结帖
                    </a>
                    <a href="{:U('index/jie/solved')}">
                        已采纳
                    </a>
                    <a href="{:U('index/jie/wonderful')}">
                        精帖
                    </a>
                </span>
                <form action="{:U('index/so/index')}" class="fly-search">
                    <i class="iconfont icon-sousuo">
                    </i>
                    <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                    type="text" name="q">
                </form>
                <a href="{:U('index/jie/add')}" class="layui-btn jie-add">
                    发表新帖
                </a>
            </div>       
             <ul class="fly-panel fly-list fly-list-top">
             <?php foreach ($topData as $k => $v) { ?>
                <li class="fly-list-li">
                    <a href="{:U('index/u/index',array('id'=>$v['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__<?php echo $v['face'] ?>" alt="贤心">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('index/jie/index',array('id'=>$v['id']))}">
                            <?php echo $v['title'] ?>
                        </a>
                        <span class="fly-tip-stick">
                            置顶
                        </span>
                        <?php if ($v['jing']==1) {?>
                            <span class="fly-tip-jing">精品</span>
                           <?php }?>
                            
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('index/user/set',array('id'=>$v['uid']))}">
                                <?php echo $v['nickname'] ?>
                            </a>
                        </span>
                        <span>
                           <?php echo Ctime($v['create_time']) ?>
                        </span>
                        <span>
                            <?php echo $v['name'] ?>
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                &#xe60c;
                            </i>
                            <?php echo $v['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                &#xe60b;
                            </i>
                            <?php echo $v['view_num'] ?>
                        </span>
                    </p>
                </li>
            <?php } ?>
            </ul> 
            <ul class="fly-panel fly-list">
            <?php foreach ($arrData as $k => $v) { ?>
                <li class="fly-list-li">
                    <a href="{:U('index/u/index',array('id'=>$v['uid']))}" class="fly-list-avatar">
                        <img src="__ROOT__<?php echo $v['face'] ?>" alt="贤心">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('index/jie/index',array('id'=>$v['id']))}">
                            <?php echo $v['title'] ?>
                        </a>
                        <?php if ($v['jing']==1) {?>
                            <span class="fly-tip-jing">精品</span>
                           <?php }?>
                            
                    </h2>
                    <p>
                        <span>
                            <a href="{:U('index/user/set',array('id'=>$v['uid']))}">
                                <?php echo $v['nickname'] ?>
                            </a>
                        </span>
                        <span>
                           <?php echo Ctime($v['create_time']) ?>
                        </span>
                        <span>
                            <?php echo $v['name'] ?>
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                &#xe60c;
                            </i>
                            <?php echo $v['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                &#xe60b;
                            </i>
                            <?php echo $v['view_num'] ?>
                        </span>
                    </p>
                </li>
            <?php } ?>
             </ul>
<!--分页按钮的样式-->
            <style type="text/css">

                    .laypage-main{
                        border:0px;
                    }
                    .laypage-main div{
                        border:0px;
                    }
                  .laypage-main .num{
                    margin: 0px 10px;
                    border:1px solid #009E94;
                  }
                   .laypage-main .current{
                    margin: 0px 10px;
                    border:1px solid #009E94;
                    background: #009E94 url() 0 0 no-repeat;
                    color:#fff;
                  }
                    .laypage-main .next,.laypage-main .prev,.laypage-main .end{
                    margin: 0px 10px;
                    border: 1px solid #009E94;
                }
            </style>
            <div style="text-align: center">
                <div class="laypage-main">
                    <?php echo $show; ?>
                </div>
            </div>
        </div>
    </div>
    <div class="edge">
        <div class="fly-panel leifeng-rank">
            <h3 class="fly-panel-title">
                近一月回答榜 - TOP 12
            </h3>
            <?php foreach ($hotytime as $k => $v) { ?> 
                
             
                <dd>
                    <a href="{:U('index/u/index',array('id'=>$v['id']))}">
                        <img src="__ROOT__<?php echo $v['face'] ?>">
                        <cite>
                            <?php echo $v['nickname'] ?>
                        </cite>
                        <i>
                            <?php echo $v['answer_num'] ?>次回答
                        </i>
                    </a>
                </dd>
           <?php  } ?>
        
        </div>
      
         <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                最近热帖
            </dt>
            <?php foreach ($hotview as $k=> $v) { ?>
             <dd>
                <a href="{:U('index/jie/index',array('id'=>$v['id']))}">
                    <?php echo $v['title'] ?>
                </a>
                <span>
                    <i class="iconfont">
                        &#xe60b;
                    </i>
                    <?php echo $v['view_num'] ?>
                </span>
            </dd>
                
          <?php  } ?>
           
        </dl>
        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                近期热议
            </dt>
            <?php foreach ($hotanswer as $key => $row) { ?>
                <dd>
                <a href="{:U('index/jie/index',array('id'=>$row['id']))}">
                    <?php echo $row['title'] ?>
                </a>
                <span>
                    <i class="iconfont">
                        &#xe60c;
                    </i>
                   <?php echo $row['answer_num'] ?>
                </span>
            </dd>
         <?php   } ?>
            
        </dl>
        <div class="fly-panel fly-link">
            <h3 class="fly-panel-title">
                友情链接
            </h3>
            <dl>
                <dd>
                    <a href="http://layim.layui.com/" target="_blank">
                        LayIM
                    </a>
                    <dd>
                        <dd>
                            <a href="http://layer.layui.com/" target="_blank">
                                layer
                            </a>
                            <dd>
                                <dd>
                                    <a href="http://www.ttlutuan.com" target="_blank">
                                        天天撸团
                                    </a>
                                    <dd>
                                        <dd>
                                            <a href="http://www.hotcn.top/" target="_blank">
                                                国际热点
                                            </a>
                                            <dd>
                                                <dd>
                                                    <a href="http://www.bejson.com/" target="_blank">
                                                        JSON在线工具
                                                    </a>
                                                    <dd>
                                                        <dd>
                                                            <a href="http://www.smeoa.com/" target="_blank">
                                                                小微OA
                                                            </a>
                                                            <dd>
                                                                <dd>
                                                                    <a href="http://www.hibug.cn/" target="_blank">
                                                                        在线Bug管理
                                                                    </a>
                                                                    <dd>
                                                                        <dd>
                                                                            <a href="http://www.houchaowei.com/" target="_blank">
                                                                                MonkeyBlog
                                                                            </a>
                                                                            <dd>
            </dl>
        </div>
    </div>
</div>
